#pragma once
#include <SFML/Graphics.hpp>
#include "Definition.h"
#include "BaseOBJ.h"
#include "ImageManager.h"


class Tile
{
    public:
        Tile();
        void init(Def def); //Definition
        sf::Sprite getspr() {return spr;};
        bool isSolid() {return solid;};
        BaseOBJ* GetTop() {return top;};
        void SetTop(BaseOBJ* obj) {top = obj;};
    private:
        sf::Sprite spr;
        bool solid;
        BaseOBJ* top;
};
